﻿<UserControl x:Class="LiSAClient.WpfClient.View.Users.UserInformation"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             mc:Ignorable="d" 
             d:DesignHeight="500" d:DesignWidth="450"
             MinWidth="500">
    <Grid>
        <Grid Column="0" Row="0">
            <Grid.RowDefinitions>
                <RowDefinition Height="20"/>
                <RowDefinition Height="Auto"/>
            </Grid.RowDefinitions>
            <Grid Grid.Column="0" Grid.Row="1">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="155"/>
                    <ColumnDefinition Width="*"/>
                </Grid.ColumnDefinitions>
                <Grid.RowDefinitions>
                    <RowDefinition Height="Auto"/>
                    <RowDefinition Height="Auto"/>
                    <RowDefinition Height="Auto"/>
                    <RowDefinition Height="Auto"/>
                    <RowDefinition Height="Auto"/>
                    <RowDefinition Height="Auto"/>
                    <RowDefinition Height="Auto"/>
                    <RowDefinition Height="Auto"/>
                    <RowDefinition Height="Auto"/>
                    <RowDefinition Height="20"/>
                    <RowDefinition Height="Auto"/>
                </Grid.RowDefinitions>

                <!--Username-->
                <Label Grid.Column="0" Grid.Row="0" Content="Username" Style="{StaticResource InformationCaption}"/>
                <TextBox Grid.Column="1" Grid.Row="0" Text="{Binding UserInfo.CurrentUser.UserName, UpdateSourceTrigger=PropertyChanged}" Style="{StaticResource EditableTextBox}" TabIndex="0"/>
                <!--Password-->
                <Label Grid.Column="0" Grid.Row="1" Content="Password" Style="{StaticResource InformationCaption}"/>
                <TextBox Grid.Column="1" Grid.Row="1" Text="{Binding UserInfo.CurrentUser.NewEncryptedPassword, UpdateSourceTrigger=PropertyChanged}" Style="{StaticResource EditableTextBox}" TabIndex="1"/>
                <!--FirstName-->
                <Label Grid.Column="0" Grid.Row="2" Content="First Name" Style="{StaticResource InformationCaption}"/>
                <TextBox Grid.Column="1" Grid.Row="2" Text="{Binding UserInfo.CurrentUser.Person.FirstName, UpdateSourceTrigger=PropertyChanged}" Style="{StaticResource EditableTextBox}" TabIndex="2"/>
                <!--MiddelName-->
                <Label Grid.Column="0" Grid.Row="3" Content="Middle Name" Style="{StaticResource InformationCaption}"/>
                <TextBox Grid.Column="1" Grid.Row="3" Text="{Binding UserInfo.CurrentUser.Person.MiddleName, UpdateSourceTrigger=PropertyChanged}" Style="{StaticResource EditableTextBox}" TabIndex="3"/>
                <!--LastName-->
                <Label Grid.Column="0" Grid.Row="4" Content="Last Name" Style="{StaticResource InformationCaption}"/>
                <TextBox Grid.Column="1" Grid.Row="4" Text="{Binding UserInfo.CurrentUser.Person.LastName, UpdateSourceTrigger=PropertyChanged}" Style="{StaticResource EditableTextBox}" TabIndex="4"/>
                <!--DegreeTitle-->
                <Label Grid.Column="0" Grid.Row="5" Content="Title" Style="{StaticResource InformationCaption}"/>
                <TextBox Grid.Column="1" Grid.Row="5" Text="{Binding UserInfo.CurrentUser.Person.Title, UpdateSourceTrigger=PropertyChanged}" Style="{StaticResource EditableTextBox}" TabIndex="5"/>
                <!--Email-->
                <Label Grid.Column="0" Grid.Row="6" Content="E-mail" Style="{StaticResource InformationCaption}"/>
                <TextBox Grid.Column="1" Grid.Row="6" Text="{Binding UserInfo.CurrentUser.Email, UpdateSourceTrigger=PropertyChanged}" Style="{StaticResource EditableTextBox}" TabIndex="6"/>
                <!--Country-->
                <Label Grid.Column="0" Grid.Row="7" Content="Country" Style="{StaticResource InformationCaption}"/>
                <TextBox Grid.Column="1" Grid.Row="7" Text="{Binding UserInfo.CurrentUser.Organization.Country, UpdateSourceTrigger=PropertyChanged}" Style="{StaticResource EditableTextBox}" TabIndex="7"/>
                <!--Organization-->
                <Label Grid.Column="0" Grid.Row="8" Content="Organization" Style="{StaticResource InformationCaption}"/>
                <TextBox Grid.Column="1" Grid.Row="8" Text="{Binding UserInfo.CurrentUser.Organization.Name, UpdateSourceTrigger=PropertyChanged}" Style="{StaticResource EditableTextBox}" TabIndex="8"/>


                <!--Organization-->
                <Label Grid.Column="1" Grid.Row="10" Content="{Binding WarningText}" Style="{StaticResource WarningCaption}"/>
          </Grid>
        </Grid>
    </Grid>
</UserControl>
